﻿""
" SP Search Bench Install "
""                        

$url = $args[0]

set-alias stsadm "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe"

"Building DDF and Solution..."
& "..\Solutions\buildSolution"


"Retracting"
stsadm -o retractsolution -name SPSearchBench.wsp -url $url -immediate
"Executing svc jobs"
stsadm -o execadmsvcjobs
"Deleting SPSearchBench.wsp"
stsadm -o deletesolution -name SPSearchBench.wsp
"Performing IISRESET"
iisreset
"Adding Solution SPSearchBench.wsp"
stsadm -o addsolution -filename C:\hods\dev\SharePointSearchBench\SharePointSearchBench.Deployment\Solutions\SPSearchBench.WSP
"Deploying Solution SPSearchBench.wsp"
stsadm -o deploysolution -name SPSearchBench.wsp -url $url -immediate -allowgac
"Executing svc jobs"
stsadm -o execadmsvcjobs
"Performing IISRESET"
iisreset


""
" DONE "
""                                  
""


